<?php foreach ($this->modelo_noticias->datos->result() as $row):?>
<div class="news2">
    <!-- <p class="news"><strong><?=$row->nombre?></strong><br /> -->
    <?=$row->texto?>
    <a href="<?=base_url();?>index.php/noticias_empresa1/ampliar/<?=$row->id?>" class="more"><?=lang('ampliar_portada_noticia');?></a><br />
    <?php if ($this->session->userdata('permisos')=='admin' || $this->session->userdata('permisos')=='edit'):?>
    <a href="<?=base_url();?>index.php/noticias_empresa1/editar/<?=$row->id?>" class="more"><?=lang('editar_portada_noticia');?></a>
    <!-- </p> -->
    <?endif;?>
</div>
<div style="height:5px"></div> <!-- separator -->
<?php endforeach;?>
